package com.lgq.cfw.dao;

import com.lgq.cfw.bean.TablePermission;
import com.lgq.cfw.bean.example.TablePermissionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TablePermissionMapper {
    List<TablePermission> getPermissionByRoleId(Integer roleId);

    long countByExample(TablePermissionExample example);

    int deleteByExample(TablePermissionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TablePermission record);

    int insertSelective(TablePermission record);

    List<TablePermission> selectByExample(TablePermissionExample example);

    TablePermission selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TablePermission record, @Param("example") TablePermissionExample example);

    int updateByExample(@Param("record") TablePermission record, @Param("example") TablePermissionExample example);

    int updateByPrimaryKeySelective(TablePermission record);

    int updateByPrimaryKey(TablePermission record);

    List<TablePermission> getPermissionByUserId(Integer userId);
}